package com.wing.productionPlan.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.wing.mybatis.common.BaseEntity;
import com.wing.web.excel.ExcelIn;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

/**
 * 需求计划表
 *
 * @author
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("pro_demand_plan")
public class DemandPlan extends BaseEntity<DemandPlan> implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     *客户ID
     */
    private String customerId;

    @TableField(exist = false)
    private String customerName;

    /**
     *产品ID
     */
    private Long customerProductId;

    @TableField(exist = false)
    private String skuCode;
    @TableField(exist = false)
    private String skuName;
    @TableField(exist = false)
    private String skuSpec;

    @TableField(exist = false)
    private String skuNameSpec;

    /**
     * 生产线
     */
    private String productLineName;
    /**
     * 采购组织
     */
    private String purchaseTissue;
    /**
     * 采购组名称
     */
    private String purchaseTissueName;
    /**
     * 物料单位
     */
    private String defaultUnit;
    /**
     * 物料类型
     */
    private String materialTypeId;

    @TableField(exist = false)
    private String materialName;

    /**
     * 计划接收时间
     */
    private String planReceiveTime;
    /**
     * 三方仓库存
     */
    private String tripartiteStorage;
    /**
     * 近三个月平均到货
     */
    private String averageArrival;

    @TableField(exist = false)
    private List<DemandPlanRecord> planRecords;

}
